\begin{algorithm}[H]
    \renewcommand{\algorithmicrequire}{\textbf{Input:}}
	\renewcommand{\algorithmicensure}{\textbf{Output:}}
	\caption{利用依赖函数做属性约简}
    \label{al:ylhs}
    \begin{algorithmic}[1] % 控制是否有序号
        \Require Data Table $(U,Attr\bigcup D)$ ; % input 的内容
	    \Ensure $RED$; % output 的内容
        
        \For {$\_=1;\_<|C|;\_++$ }
            \State $a_0 = \mathop{\arg\min}\limits_{a\in C} Sig_C(a,D)$
            \State calculate the $R_{C}$ and $R_{C-\left\{ a_0 \right\}}$ 
            \If {$R_C == R_{C-\left\{ a_0 \right\}}$}
                \State $C.remove(a_0)$
                \State \textbf{continue}
            \Else
                \State \textbf{return} C
            \EndIf
        \EndFor


        % \State \textbf{return} $\left\{ B_1,B_2,\cdots,B_q \right\}$.
    \end{algorithmic}
\end{algorithm}